<extend name='Public:layout' />
<block name='main-content'>	
<div class="daohang">
	<ul>
		<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs"> 首页 </li>
		<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">网站配置<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
		<!-- <li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">奖金管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
		<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">产品管理<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li> -->
	</ul>
</div>
<div class="admin-biaogelist">
	<div class="listbiaoti am-cf">
		<ul class="am-icon-user on"> 网站配置</ul>
		<dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">网站配置</a></dl>
		<dl>
	        <a type="button" href="__CONTROLLER__/add/" class="am-btn am-btn-danger am-round am-btn-xs am-icon-plus" >添加网站配置</a>
	      </dl>
	</div>
    <form class="am-form am-g">
          <table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
            <thead>
              <tr class="am-success">
                <th class="table-check"><input type="checkbox" /></th>

                <th class="table-id">ID</th>
                <th class="table-title">网站名称</th>
                <th class="table-title">网站关键字</th>
                <th class="table-type">网站描述</th>
                <th class="table-type">网站版权</th>
                <th class="table-author am-hide-sm-only">LOGO</th>
                
                <th class="table-author am-hide-sm-only">网站备案号</th>
                <th class="table-date am-hide-sm-only">网站状态</th>
                <th width="130px" class="table-set">操作</th>
              </tr>
            </thead>
            <tbody>
            <assign name="num" item='0'/>
            <foreach name="configs" item="config">
              <tr>
                <td><input type="checkbox" /></td>
                <td>{$config['id']}</td>
                <td>{$config['webname']}</td>
                <td>{$config['keywords']}</td>
                <td>{$config['description']}</td>
                <td>{$config['copy']}</td>
                <td class="am-hide-sm-only"><img src="__PUBLIC__/Uploads/{$config['logo']}" style="width:40px;height:40px;"></td>
                <td class="am-hide-sm-only">{$config['record_number']}</td>
                <td class="am-hide-sm-only">{$config['status']?"开启":"维护"}</td>
                <td>	
                	<div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                    <!--   <button class="am-btn am-btn-default am-btn-xs am-text-success am-round"><span class="am-icon-search" title="查看详情"></span> </button> -->
                      <a href="__CONTROLLER__/mod/id/{$config.id}" class="am-btn am-btn-default am-btn-xs am-text-secondary am-round" title="修改"><span class="am-icon-pencil-square-o"></span></a>
                      <a href="__CONTROLLER__/del/id/{$config.id}" class="am-btn am-btn-default am-btn-xs am-text-danger am-round" title="删除"><span class="am-icon-trash-o" ></span></a>
                    </div>
                  </div>
                </td>
              </tr>
              </foreach>
            </tbody>
          </table>               
        </form>

</div>
</block>